const initState = {
	list: [],
};
function reducer(state = initState, action) {
	switch (action.type) {
		case "ADD_LIST":
			state.list.push(action.data);
			break;
		default:
			break;
	}
	return JSON.parse(JSON.stringify(state));
}

export default reducer;
